#include<stdio.h>
int main(void)
{
	int x,q,e;double l200,o,y3,y1,d,z,dz,zk,l;
	d=8.38;y3=0.3;y1=0.1;
	scanf("%d\n%d\n%lf",&q,&x,&l);
	l200=200/d;
	if(x<=1&x>=7&&l>=0&l<=50){
		z=d*l;
		if(x!=5){
			if(z>=200){
				o=z;
				e=20;
				l=l-l200;
				dz=l*0.3;
				zk=o-e-dz;
				printf("Order amount: %.2f\nE-coupon discount amount: %.2f\nDiscount amount: %.2f\nPayment amount: %.2f",o,e,dz,zk);
			}else if(z>0&z<200){
					o=z;
				    e=0;
				    dz=l*0.3;
				    zk=o-e-dz;
				printf("Order amount: %.2f\nE-coupon discount amount: %.2f\nDiscount amount: %.2f\nPayment amount: %.2f",o,e,dz,zk);
			}return 0;
		}else{
			if(z>=200){
				o=z;
				e=20;
				l=l-l200;
				dz=l*0.4;
				zk=o-e-dz;
				printf("Order amount: %.2f\nE-coupon discount amount: %.2f\nDiscount amount: %.2f\nPayment amount: %.2f",o,e,dz,zk);
			}else if(z>0&z<200){
					o=z;
				    e=0;
				    dz=l*0.4;
				    zk=o-e-dz;
				printf("Order amount: %.2f\nE-coupon discount amount: %.2f\nDiscount amount: %.2f\nPayment amount: %.2f",o,e,dz,zk);
			}return 0;
		}
	}
	return 0;
}
